package com.example.springaop.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {

    @RequestMapping("sayhi")
    public String sayHi(){
        System.out.println("执行了 sayHi 方法");
        return "hi springboot AOP";
    }

    @RequestMapping("login")
    public String login(){
        System.out.println("执行了 login 方法");
        return "do user login";
    }
}
